import request from '@/utils/request'

// 查询大纲文章内容列表
export function listTopicContent(query) {
  return request({
    url: '/article/topicContent/list',
    method: 'get',
    params: query
  })
}

// 查询大纲文章内容详细
export function getTopicContent(id) {
  return request({
    url: '/article/topicContent/' + id,
    method: 'get'
  })
}

// 新增大纲文章内容
export function addTopicContent(data) {
  return request({
    url: '/article/topicContent',
    method: 'post',
    data: data
  })
}

// 修改大纲文章内容
export function updateTopicContent(data) {
  return request({
    url: '/article/topicContent',
    method: 'put',
    data: data
  })
}

// 删除大纲文章内容
export function delTopicContent(id) {
  return request({
    url: '/article/topicContent/' + id,
    method: 'delete'
  })
}



// 导出csv
export function exportData(query){
  return request({
    url:'/article/topicContent/export',
    method:'get',
    params:query,
    responseType: 'blob'
  })
}
